/**
 * 学习目标：class语法补充
 */
class Obj {
  name = 'zs';

  sayHello() {
    console.log('hello Class');
  }

  sayYes() {}
}

class NewObj extends Obj {
  sayBye() {
    console.log('bye bye');
  }
}

// const _obj = new Obj();
// _obj.sayHello();
// console.log('_obj', _obj);

const _newobj = new NewObj();
console.log(_newobj.name);
_newobj.sayHello();
